3.602 \(\int (a+b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \sqrt{\sec (c+d x)} \, dx\)
Optimal. Leaf size=532 \[ -\frac{\sqrt{a+b} \left (3 a^2 B+12 a A b+4 b^2 B\right ) \sqrt{\cos (c+d x)} \csc (c+d x) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac{a+b}{b};\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right )}{4 b d \sqrt{\sec (c+d x)}}+\frac{(5 a B+4 A b) \sin (c+d x) \sqrt{\sec (c+d x)} \sqrt{a+b \cos (c+d x)}}{4 d}+\frac{\sqrt{a+b} (8 a A+5 a B+4 A b+2 b B) \sqrt{\cos (c+d x)} \csc (c+d x) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right )}{4 d \sqrt{\sec (c+d x)}}-\frac{(a-b) \sqrt{a+b} (5 a B+4 A b) \sqrt{\cos (c+d x)} \csc (c+d x) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right )}{4 a d \sqrt{\sec (c+d x)}}+\frac{b B \sin (c+d x) \sqrt{a+b \cos (c+d x)}}{2 d \sqrt{\sec (c+d x)}} \]
[Out]
-((a - b)*Sqrt[a + b]*(4*A*b + 5*a*B)*Sqrt[Cos[c + d*x]]*Csc[c + d*x]*EllipticE[ArcSin[Sqrt[a + b*Cos[c + d*x]
]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec
[c + d*x]))/(a - b)])/(4*a*d*Sqrt[Sec[c + d*x]]) + (Sqrt[a + b]*(8*a*A + 4*A*b + 5*a*B + 2*b*B)*Sqrt[Cos[c + d
*x]]*Csc[c + d*x]*EllipticF[ArcSin[Sqrt[a + b*Cos[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a -
b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(4*d*Sqrt[Sec[c + d*x]]) - (Sq
rt[a + b]*(12*a*A*b + 3*a^2*B + 4*b^2*B)*Sqrt[Cos[c + d*x]]*Csc[c + d*x]*EllipticPi[(a + b)/b, ArcSin[Sqrt[a +
b*Cos[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*S
qrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(4*b*d*Sqrt[Sec[c + d*x]]) + (b*B*Sqrt[a + b*Cos[c + d*x]]*Sin[c + d*x])/
(2*d*Sqrt[Sec[c + d*x]]) + ((4*A*b + 5*a*B)*Sqrt[a + b*Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/(4*d)
________________________________________________________________________________________
Rubi [A] time = 1.36707, antiderivative size = 532, normalized size of antiderivative = 1.,
number of steps used = 8, number of rules used = 8, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.229, Rules used =
{2961, 2990, 3061, 3053, 2809, 2998, 2816, 2994} \[ -\frac{\sqrt{a+b} \left (3 a^2 B+12 a A b+4 b^2 B\right ) \sqrt{\cos (c+d x)} \csc (c+d x) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (\sec (c+d x)+1)}{a-b}} \Pi \left (\frac{a+b}{b};\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right )}{4 b d \sqrt{\sec (c+d x)}}+\frac{(5 a B+4 A b) \sin (c+d x) \sqrt{\sec (c+d x)} \sqrt{a+b \cos (c+d x)}}{4 d}+\frac{\sqrt{a+b} (8 a A+5 a B+4 A b+2 b B) \sqrt{\cos (c+d x)} \csc (c+d x) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (\sec (c+d x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right )}{4 d \sqrt{\sec (c+d x)}}-\frac{(a-b) \sqrt{a+b} (5 a B+4 A b) \sqrt{\cos (c+d x)} \csc (c+d x) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (\sec (c+d x)+1)}{a-b}} E\left (\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right )}{4 a d \sqrt{\sec (c+d x)}}+\frac{b B \sin (c+d x) \sqrt{a+b \cos (c+d x)}}{2 d \sqrt{\sec (c+d x)}} \]
Antiderivative was successfully verified.
[In]
Int[(a + b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x])*Sqrt[Sec[c + d*x]],x]
[Out]
-((a - b)*Sqrt[a + b]*(4*A*b + 5*a*B)*Sqrt[Cos[c + d*x]]*Csc[c + d*x]*EllipticE[ArcSin[Sqrt[a + b*Cos[c + d*x]
]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec
[c + d*x]))/(a - b)])/(4*a*d*Sqrt[Sec[c + d*x]]) + (Sqrt[a + b]*(8*a*A + 4*A*b + 5*a*B + 2*b*B)*Sqrt[Cos[c + d
*x]]*Csc[c + d*x]*EllipticF[ArcSin[Sqrt[a + b*Cos[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a -
b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(4*d*Sqrt[Sec[c + d*x]]) - (Sq
rt[a + b]*(12*a*A*b + 3*a^2*B + 4*b^2*B)*Sqrt[Cos[c + d*x]]*Csc[c + d*x]*EllipticPi[(a + b)/b, ArcSin[Sqrt[a +
b*Cos[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*S
qrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(4*b*d*Sqrt[Sec[c + d*x]]) + (b*B*Sqrt[a + b*Cos[c + d*x]]*Sin[c + d*x])/
(2*d*Sqrt[Sec[c + d*x]]) + ((4*A*b + 5*a*B)*Sqrt[a + b*Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/(4*d)
Rule 2961
Int[(csc[(e_.) + (f_.)*(x_)]*(g_.))^(p_.)*((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_.)*((c_) + (d_.)*sin[(e_.
) + (f_.)*(x_)])^(n_.), x_Symbol] :> Dist[(g*Csc[e + f*x])^p*(g*Sin[e + f*x])^p, Int[((a + b*Sin[e + f*x])^m*(
c + d*Sin[e + f*x])^n)/(g*Sin[e + f*x])^p, x], x] /; FreeQ[{a, b, c, d, e, f, g, m, n, p}, x] && NeQ[b*c - a*d
, 0] && !IntegerQ[p] && !(IntegerQ[m] && IntegerQ[n])
Rule 2990
Int[((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e
_.) + (f_.)*(x_)])^(n_), x_Symbol] :> -Simp[(b*B*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 1)*(c + d*Sin[e + f*x]
)^(n + 1))/(d*f*(m + n + 1)), x] + Dist[1/(d*(m + n + 1)), Int[(a + b*Sin[e + f*x])^(m - 2)*(c + d*Sin[e + f*x
])^n*Simp[a^2*A*d*(m + n + 1) + b*B*(b*c*(m - 1) + a*d*(n + 1)) + (a*d*(2*A*b + a*B)*(m + n + 1) - b*B*(a*c -
b*d*(m + n)))*Sin[e + f*x] + b*(A*b*d*(m + n + 1) - B*(b*c*m - a*d*(2*m + n)))*Sin[e + f*x]^2, x], x], x] /; F
reeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[m,
1] && !(IGtQ[n, 1] && ( !IntegerQ[m] || (EqQ[a, 0] && NeQ[c, 0])))
Rule 3061
Int[((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2)/(Sqrt[(a_.) + (b_.)*sin[(e_.) +
(f_.)*(x_)]]*Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> -Simp[(C*Cos[e + f*x]*Sqrt[c + d*Sin[e
+ f*x]])/(d*f*Sqrt[a + b*Sin[e + f*x]]), x] + Dist[1/(2*d), Int[(1*Simp[2*a*A*d - C*(b*c - a*d) - 2*(a*c*C - d
*(A*b + a*B))*Sin[e + f*x] + (2*b*B*d - C*(b*c + a*d))*Sin[e + f*x]^2, x])/((a + b*Sin[e + f*x])^(3/2)*Sqrt[c
+ d*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]
&& NeQ[c^2 - d^2, 0]
Rule 3053
Int[((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)] + (C_.)*sin[(e_.) + (f_.)*(x_)]^2)/(((a_.) + (b_.)*sin[(e_.) + (f_.
)*(x_)])^(3/2)*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Dist[C/b^2, Int[Sqrt[a + b*Sin[e + f
*x]]/Sqrt[c + d*Sin[e + f*x]], x], x] + Dist[1/b^2, Int[(A*b^2 - a^2*C + b*(b*B - 2*a*C)*Sin[e + f*x])/((a + b
*Sin[e + f*x])^(3/2)*Sqrt[c + d*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B, C}, x] && NeQ[b*c - a
*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Rule 2809
Int[Sqrt[(b_.)*sin[(e_.) + (f_.)*(x_)]]/Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]], x_Symbol] :> Simp[(2*b*Tan
[e + f*x]*Rt[(c + d)/b, 2]*Sqrt[(c*(1 + Csc[e + f*x]))/(c - d)]*Sqrt[(c*(1 - Csc[e + f*x]))/(c + d)]*EllipticP
i[(c + d)/d, ArcSin[Sqrt[c + d*Sin[e + f*x]]/(Sqrt[b*Sin[e + f*x]]*Rt[(c + d)/b, 2])], -((c + d)/(c - d))])/(d
*f), x] /; FreeQ[{b, c, d, e, f}, x] && NeQ[c^2 - d^2, 0] && PosQ[(c + d)/b]
Rule 2998
Int[((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(3/2)*Sqrt[(c_) + (d_.)*s
in[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Dist[(A - B)/(a - b), Int[1/(Sqrt[a + b*Sin[e + f*x]]*Sqrt[c + d*Sin[e
+ f*x]]), x], x] - Dist[(A*b - a*B)/(a - b), Int[(1 + Sin[e + f*x])/((a + b*Sin[e + f*x])^(3/2)*Sqrt[c + d*Sin
[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f, A, B}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2
- d^2, 0] && NeQ[A, B]
Rule 2816
Int[1/(Sqrt[(d_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[(-2*
Tan[e + f*x]*Rt[(a + b)/d, 2]*Sqrt[(a*(1 - Csc[e + f*x]))/(a + b)]*Sqrt[(a*(1 + Csc[e + f*x]))/(a - b)]*Ellipt
icF[ArcSin[Sqrt[a + b*Sin[e + f*x]]/(Sqrt[d*Sin[e + f*x]]*Rt[(a + b)/d, 2])], -((a + b)/(a - b))])/(a*f), x] /
; FreeQ[{a, b, d, e, f}, x] && NeQ[a^2 - b^2, 0] && PosQ[(a + b)/d]
Rule 2994
Int[((A_) + (B_.)*sin[(e_.) + (f_.)*(x_)])/(((b_.)*sin[(e_.) + (f_.)*(x_)])^(3/2)*Sqrt[(c_) + (d_.)*sin[(e_.)
+ (f_.)*(x_)]]), x_Symbol] :> Simp[(-2*A*(c - d)*Tan[e + f*x]*Rt[(c + d)/b, 2]*Sqrt[(c*(1 + Csc[e + f*x]))/(c
- d)]*Sqrt[(c*(1 - Csc[e + f*x]))/(c + d)]*EllipticE[ArcSin[Sqrt[c + d*Sin[e + f*x]]/(Sqrt[b*Sin[e + f*x]]*Rt[
(c + d)/b, 2])], -((c + d)/(c - d))])/(f*b*c^2), x] /; FreeQ[{b, c, d, e, f, A, B}, x] && NeQ[c^2 - d^2, 0] &&
EqQ[A, B] && PosQ[(c + d)/b]
Rubi steps
\begin{align*} \int (a+b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \sqrt{\sec (c+d x)} \, dx &=\left (\sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{(a+b \cos (c+d x))^{3/2} (A+B \cos (c+d x))}{\sqrt{\cos (c+d x)}} \, dx\\ &=\frac{b B \sqrt{a+b \cos (c+d x)} \sin (c+d x)}{2 d \sqrt{\sec (c+d x)}}+\frac{1}{2} \left (\sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{\frac{1}{2} a (4 a A+b B)+\left (4 a A b+2 a^2 B+b^2 B\right ) \cos (c+d x)+\frac{1}{2} b (4 A b+5 a B) \cos ^2(c+d x)}{\sqrt{\cos (c+d x)} \sqrt{a+b \cos (c+d x)}} \, dx\\ &=\frac{b B \sqrt{a+b \cos (c+d x)} \sin (c+d x)}{2 d \sqrt{\sec (c+d x)}}+\frac{(4 A b+5 a B) \sqrt{a+b \cos (c+d x)} \sqrt{\sec (c+d x)} \sin (c+d x)}{4 d}+\frac{\left (\sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{-\frac{1}{2} a b (4 A b+5 a B)+a b (4 a A+b B) \cos (c+d x)+\frac{1}{2} b \left (12 a A b+3 a^2 B+4 b^2 B\right ) \cos ^2(c+d x)}{\cos ^{\frac{3}{2}}(c+d x) \sqrt{a+b \cos (c+d x)}} \, dx}{4 b}\\ &=\frac{b B \sqrt{a+b \cos (c+d x)} \sin (c+d x)}{2 d \sqrt{\sec (c+d x)}}+\frac{(4 A b+5 a B) \sqrt{a+b \cos (c+d x)} \sqrt{\sec (c+d x)} \sin (c+d x)}{4 d}+\frac{\left (\sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{-\frac{1}{2} a b (4 A b+5 a B)+a b (4 a A+b B) \cos (c+d x)}{\cos ^{\frac{3}{2}}(c+d x) \sqrt{a+b \cos (c+d x)}} \, dx}{4 b}+\frac{1}{8} \left (\left (12 a A b+3 a^2 B+4 b^2 B\right ) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{\sqrt{\cos (c+d x)}}{\sqrt{a+b \cos (c+d x)}} \, dx\\ &=-\frac{\sqrt{a+b} \left (12 a A b+3 a^2 B+4 b^2 B\right ) \sqrt{\cos (c+d x)} \csc (c+d x) \Pi \left (\frac{a+b}{b};\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right ) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (1+\sec (c+d x))}{a-b}}}{4 b d \sqrt{\sec (c+d x)}}+\frac{b B \sqrt{a+b \cos (c+d x)} \sin (c+d x)}{2 d \sqrt{\sec (c+d x)}}+\frac{(4 A b+5 a B) \sqrt{a+b \cos (c+d x)} \sqrt{\sec (c+d x)} \sin (c+d x)}{4 d}-\frac{1}{8} \left (a (4 A b+5 a B) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{1+\cos (c+d x)}{\cos ^{\frac{3}{2}}(c+d x) \sqrt{a+b \cos (c+d x)}} \, dx+\frac{1}{8} \left (a (8 a A+4 A b+5 a B+2 b B) \sqrt{\cos (c+d x)} \sqrt{\sec (c+d x)}\right ) \int \frac{1}{\sqrt{\cos (c+d x)} \sqrt{a+b \cos (c+d x)}} \, dx\\ &=-\frac{(a-b) \sqrt{a+b} (4 A b+5 a B) \sqrt{\cos (c+d x)} \csc (c+d x) E\left (\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right ) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (1+\sec (c+d x))}{a-b}}}{4 a d \sqrt{\sec (c+d x)}}+\frac{\sqrt{a+b} (8 a A+4 A b+5 a B+2 b B) \sqrt{\cos (c+d x)} \csc (c+d x) F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right ) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (1+\sec (c+d x))}{a-b}}}{4 d \sqrt{\sec (c+d x)}}-\frac{\sqrt{a+b} \left (12 a A b+3 a^2 B+4 b^2 B\right ) \sqrt{\cos (c+d x)} \csc (c+d x) \Pi \left (\frac{a+b}{b};\sin ^{-1}\left (\frac{\sqrt{a+b \cos (c+d x)}}{\sqrt{a+b} \sqrt{\cos (c+d x)}}\right )|-\frac{a+b}{a-b}\right ) \sqrt{\frac{a (1-\sec (c+d x))}{a+b}} \sqrt{\frac{a (1+\sec (c+d x))}{a-b}}}{4 b d \sqrt{\sec (c+d x)}}+\frac{b B \sqrt{a+b \cos (c+d x)} \sin (c+d x)}{2 d \sqrt{\sec (c+d x)}}+\frac{(4 A b+5 a B) \sqrt{a+b \cos (c+d x)} \sqrt{\sec (c+d x)} \sin (c+d x)}{4 d}\\ \end{align*}
Mathematica [B] time = 18.5723, size = 1146, normalized size = 2.15 \[ \text{result too large to display} \]
Warning: Unable to verify antiderivative.
[In]
Integrate[(a + b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x])*Sqrt[Sec[c + d*x]],x]
[Out]
(b*B*Sqrt[a + b*Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*Sin[2*(c + d*x)])/(4*d) + (Sqrt[(1 - Tan[(c + d*x)/2]^2)^(-1)
]*(4*a*A*b*Tan[(c + d*x)/2] + 4*A*b^2*Tan[(c + d*x)/2] + 5*a^2*B*Tan[(c + d*x)/2] + 5*a*b*B*Tan[(c + d*x)/2] -
8*A*b^2*Tan[(c + d*x)/2]^3 - 10*a*b*B*Tan[(c + d*x)/2]^3 - 4*a*A*b*Tan[(c + d*x)/2]^5 + 4*A*b^2*Tan[(c + d*x)
/2]^5 - 5*a^2*B*Tan[(c + d*x)/2]^5 + 5*a*b*B*Tan[(c + d*x)/2]^5 - 24*a*A*b*EllipticPi[-1, -ArcSin[Tan[(c + d*x
)/2]], (-a + b)/(a + b)]*Sqrt[1 - Tan[(c + d*x)/2]^2]*Sqrt[(a + b + a*Tan[(c + d*x)/2]^2 - b*Tan[(c + d*x)/2]^
2)/(a + b)] - 6*a^2*B*EllipticPi[-1, -ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*Sqrt[1 - Tan[(c + d*x)/2]^2]
*Sqrt[(a + b + a*Tan[(c + d*x)/2]^2 - b*Tan[(c + d*x)/2]^2)/(a + b)] - 8*b^2*B*EllipticPi[-1, -ArcSin[Tan[(c +
d*x)/2]], (-a + b)/(a + b)]*Sqrt[1 - Tan[(c + d*x)/2]^2]*Sqrt[(a + b + a*Tan[(c + d*x)/2]^2 - b*Tan[(c + d*x)
/2]^2)/(a + b)] - 24*a*A*b*EllipticPi[-1, -ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*Tan[(c + d*x)/2]^2*Sqrt
[1 - Tan[(c + d*x)/2]^2]*Sqrt[(a + b + a*Tan[(c + d*x)/2]^2 - b*Tan[(c + d*x)/2]^2)/(a + b)] - 6*a^2*B*Ellipti
cPi[-1, -ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*Tan[(c + d*x)/2]^2*Sqrt[1 - Tan[(c + d*x)/2]^2]*Sqrt[(a +
b + a*Tan[(c + d*x)/2]^2 - b*Tan[(c + d*x)/2]^2)/(a + b)] - 8*b^2*B*EllipticPi[-1, -ArcSin[Tan[(c + d*x)/2]],
(-a + b)/(a + b)]*Tan[(c + d*x)/2]^2*Sqrt[1 - Tan[(c + d*x)/2]^2]*Sqrt[(a + b + a*Tan[(c + d*x)/2]^2 - b*Tan[
(c + d*x)/2]^2)/(a + b)] + (a + b)*(4*A*b + 5*a*B)*EllipticE[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*Sqrt[
1 - Tan[(c + d*x)/2]^2]*(1 + Tan[(c + d*x)/2]^2)*Sqrt[(a + b + a*Tan[(c + d*x)/2]^2 - b*Tan[(c + d*x)/2]^2)/(a
+ b)] + 2*(4*a^2*(A - B) - 2*b^2*B + a*b*(-8*A + B))*EllipticF[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)]*Sq
rt[1 - Tan[(c + d*x)/2]^2]*(1 + Tan[(c + d*x)/2]^2)*Sqrt[(a + b + a*Tan[(c + d*x)/2]^2 - b*Tan[(c + d*x)/2]^2)
/(a + b)]))/(4*d*(1 + Tan[(c + d*x)/2]^2)^(3/2)*Sqrt[(a + b + a*Tan[(c + d*x)/2]^2 - b*Tan[(c + d*x)/2]^2)/(1
+ Tan[(c + d*x)/2]^2)])
________________________________________________________________________________________
Maple [B] time = 0.547, size = 2432, normalized size = 4.6 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
int((a+b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c))*sec(d*x+c)^(1/2),x)
[Out]
-1/4/d*(1/cos(d*x+c))^(1/2)/(a+b*cos(d*x+c))^(1/2)*(8*A*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*
x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*a^2*sin(d*x+c)+24*A*(co
s(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*sin(d*x+c)*cos(d*x+c)*EllipticP
i((-1+cos(d*x+c))/sin(d*x+c),-1,(-(a-b)/(a+b))^(1/2))*a*b+8*A*cos(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/
(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*sin(d*
x+c)*a^2-8*B*cos(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*Elli
pticF((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*sin(d*x+c)*a^2+7*B*cos(d*x+c)^3*a*b-5*B*cos(d*x+c)^2*a*
b-2*B*cos(d*x+c)*a*b+4*A*cos(d*x+c)^2*a*b-4*A*cos(d*x+c)*a*b+4*A*cos(d*x+c)^3*b^2-4*A*cos(d*x+c)^2*b^2+2*B*cos
(d*x+c)^4*b^2-2*B*cos(d*x+c)^2*b^2+5*B*cos(d*x+c)^2*a^2-5*B*cos(d*x+c)*a^2+4*A*(cos(d*x+c)/(1+cos(d*x+c)))^(1/
2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*sin(d*x+c)*cos(d*x+c)*EllipticE((-1+cos(d*x+c))/sin(d*x+c),
(-(a-b)/(a+b))^(1/2))*a*b+2*B*sin(d*x+c)*cos(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c)
)/(1+cos(d*x+c)))^(1/2)*EllipticF((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*a*b+5*B*sin(d*x+c)*cos(d*x+
c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticE((-1+cos(d*x+c))
/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*a*b-16*A*cos(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+
c))/(1+cos(d*x+c)))^(1/2)*EllipticF((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*sin(d*x+c)*a*b-16*A*(cos(
d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF((-1+cos(d*x+c))/sin(d*x
+c),(-(a-b)/(a+b))^(1/2))*a*b*sin(d*x+c)+4*A*sin(d*x+c)*cos(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*
(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticE((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*b^2-4*B*sin(
d*x+c)*cos(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF(
(-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*b^2+6*B*sin(d*x+c)*cos(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/
2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticPi((-1+cos(d*x+c))/sin(d*x+c),-1,(-(a-b)/(a+b))^(1/
2))*a^2+8*B*sin(d*x+c)*cos(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^
(1/2)*EllipticPi((-1+cos(d*x+c))/sin(d*x+c),-1,(-(a-b)/(a+b))^(1/2))*b^2+5*B*sin(d*x+c)*cos(d*x+c)*(cos(d*x+c)
/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticE((-1+cos(d*x+c))/sin(d*x+c),(-
(a-b)/(a+b))^(1/2))*a^2+24*A*sin(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x
+c)))^(1/2)*EllipticPi((-1+cos(d*x+c))/sin(d*x+c),-1,(-(a-b)/(a+b))^(1/2))*a*b+4*A*sin(d*x+c)*(cos(d*x+c)/(1+c
os(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticE((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)
/(a+b))^(1/2))*a*b+2*B*sin(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^
(1/2)*EllipticF((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*a*b+5*B*sin(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c))
)^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticE((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1
/2))*a*b+4*A*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*sin(d*x+c)*Elli
pticE((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*b^2-4*B*sin(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1
/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*b^2+6
*B*sin(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticPi((-1
+cos(d*x+c))/sin(d*x+c),-1,(-(a-b)/(a+b))^(1/2))*a^2+8*B*sin(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)
*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticPi((-1+cos(d*x+c))/sin(d*x+c),-1,(-(a-b)/(a+b))^(1/2))*b^2+5*B
*sin(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticE((-1+co
s(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*a^2-8*B*sin(d*x+c)*(cos(d*x+c)/(1+cos(d*x+c)))^(1/2)*(1/(a+b)*(a+b*
cos(d*x+c))/(1+cos(d*x+c)))^(1/2)*EllipticF((-1+cos(d*x+c))/sin(d*x+c),(-(a-b)/(a+b))^(1/2))*a^2)/sin(d*x+c)
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \cos \left (d x + c\right ) + A\right )}{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac{3}{2}} \sqrt{\sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c))*sec(d*x+c)^(1/2),x, algorithm="maxima")
[Out]
integrate((B*cos(d*x + c) + A)*(b*cos(d*x + c) + a)^(3/2)*sqrt(sec(d*x + c)), x)
________________________________________________________________________________________
Fricas [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c))*sec(d*x+c)^(1/2),x, algorithm="fricas")
[Out]
Timed out
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*cos(d*x+c))**(3/2)*(A+B*cos(d*x+c))*sec(d*x+c)**(1/2),x)
[Out]
Timed out
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (B \cos \left (d x + c\right ) + A\right )}{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac{3}{2}} \sqrt{\sec \left (d x + c\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
integrate((a+b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c))*sec(d*x+c)^(1/2),x, algorithm="giac")
[Out]
integrate((B*cos(d*x + c) + A)*(b*cos(d*x + c) + a)^(3/2)*sqrt(sec(d*x + c)), x)